<?php if(isDevMode()): ?>
<link rel="stylesheet" type="text/css" href="<?=OC_Helper::linkTo("", "themes/jobs/core/js/jquery/jqplot/jquery.jqplot.css")?>"/>
<script language="javascript" type="text/javascript" src="<?=OC_Helper::linkTo("", "themes/jobs/core/js/jquery/jqplot/jquery.jqplot.min.js")?>"></script>
<script type="text/javascript" src="<?=OC_Helper::linkTo("", "themes/jobs/core/js/jquery/jqplot/plugins/jqplot.highlighter.min.js")?>"></script>
<script type="text/javascript" src="<?=OC_Helper::linkTo("", "themes/jobs/core/js/jquery/jqplot/plugins/jqplot.cursor.min.js")?>"></script>
<script type="text/javascript" src="<?=OC_Helper::linkTo("", "themes/jobs/core/js/jquery/jqplot/plugins/jqplot.dateAxisRenderer.min.js")?>"></script>
<script type="text/javascript" src="<?=OC_Helper::linkTo("", "themes/jobs/core/js/jquery/jqplot/plugins/jqplot.pieRenderer.min.js")?>"></script>
<script type="text/javascript" src="<?=OC_Helper::linkTo("", "themes/jobs/core/js/jquery/jqplot/plugins/jqplot.donutRenderer.min.js")?>"></script>
<script type="text/javascript" src="<?=OC_Helper::linkTo("", "themes/jobs/core/js/jquery/jqplot/plugins/jqplot.barRenderer.min.js")?>"></script>
<script type="text/javascript" src="<?=OC_Helper::linkTo("", "themes/jobs/core/js/jquery/jqplot/plugins/jqplot.categoryAxisRenderer.min.js")?>"></script>
<script type="text/javascript" src="<?=OC_Helper::linkTo("", "themes/jobs/core/js/jquery/jqplot/plugins/jqplot.pointLabels.min.js")?>"></script>
<script type="text/javascript" src="<?=OC_Helper::linkTo("", "themes/jobs/core/js/jquery/ui/minified/jquery.ui.datepicker.min.js")?>"></script>
<?php
   OCP\Util::addStyle('reports', 'reports');
   OCP\Util::addScript('reports', 'reports');
else:
   OCP\Util::addStyle('static', 'reports');
   OCP\Util::addScript('static', 'apps/reports.min');
endif;
?>
<!--[if IE]>
<?php if(isDevMode()): ?>
   <script type="text/javascript" src="<?php echo OC_Helper::linkTo("", "themes/jobs/core/js/jquery/jqplot/excanvas.js"); ?>"></script>
<?php else:?>
   <?php PUtil::loadJs("static/js/jquery/plugin/jqplot.excanvas.min.js"); ?>
<?php endif; ?>
<![endif]-->

<?php
defined('_JEXEC') or die;
OCP\App::setActiveNavigationEntry('reports_index');
?>

<? if (PReportsHelper::hasReport()): ?>
   <?=$_['nav']?>

   <div class="rep_innerwrap common has_search">
      <div class="rep_summaryrep">
         <div class="rep_sumtop clearfix">
            <h4 class="pull-left">综合统计</h4>
            <a href="javascript:;" class="linkto pull-left" data-anchor="#anchor_trend">趋势情况</a>
            <a href="javascript:;" class="linkto pull-left" data-anchor="#anchor_from">来源情况</a>
            <a href="javascript:;" class="linkto last pull-left" data-anchor="#anchor_resumeparse">人才分析</a>
            <span class="pull-left">简历总数</span>
            <em class="pull-left"><?=(empty($_['stats']['resume']) ? 0 : $_['stats']['resume'])?></em>
            <i class="pull-left">&nbsp;</i>
            <span class="pull-left">职位总数</span>
            <em class="pull-left"><?=(empty($_['stats']['job']) ? 0 : $_['stats']['job'])?></em>
            <div class="pull-right hide"><a href="#"><i class="print"></i> 打印</a></div>
            <div class="pull-right hide"><a href="#"><i class="export"></i> 导出</a></div>
         </div>

         <form id="summary" name="summary" class="reportfrom" method="get" action="<?=OC_Helper::linkTo('reports','ajax/getsummary.php')?>" autocomplete="off" data-container="#chartContent">
            <?=PReportsHelper::showDateBar();?>
            <input name="fid" type="hidden" value="<?=JRequest::getInt('fid', 0);?>">
         </form>
      </div>

      <div id="chartContent"></div>
      
   </div>
<? else: ?>
   <div class="yahei large noreportsdata">您的统计信息尚未生成，请等待一个工作日。</div>
<? endif; ?>

<?php if(0): ?>
<div id="ppp_dateselect" class="ppp_timepickerwrap">
   <!-- ppp_timepicker年 -->
   <div class="ppp_timepicker ppp_timepicker_year clearfix">
      <ul class="pull-left">
         <li class="sldcur_li">2011</li>
         <li>2012</li>
         <li>2013</li>
         <li>2014</li>
      </ul>
   </div>

   <!-- ppp_timepicker季度 -->
   <div class="ppp_timepicker ppp_timepicker_quarter clearfix">
      <ul class="pull-left">
         <li class="sldcur_li">2011</li>
         <li>2012</li>
         <li>2013</li>
         <li>2014</li>
      </ul>
      <div class="ppp_timepicker_right pull-left">
         <div class="ptr_eachquarter clearfix">
            <div class="pull-left"><a href="#">第1季度</a></div>
            <div class="pull-left"><a href="#" class="sldcur_a">第2季度</a></div>
            <div class="pull-left"><a href="#">第3季度</a></div>
            <div class="pull-left"><a href="#" class="notsldcur_a">第4季度</a></div>
         </div>
         <div class="ptr_eachquarter clearfix" style="display:none;">
            <div class="pull-left"><a href="#">第一季度</a></div>
            <div class="pull-left"><a href="#">第二季度</a></div>
            <div class="pull-left"><a href="#">第三季度</a></div>
            <div class="pull-left"><a href="#">第四季度</a></div>
         </div>
         <div class="ptr_eachquarter clearfix" style="display:none;">
            <div class="pull-left"><a href="#">第一季度</a></div>
            <div class="pull-left"><a href="#">第二季度</a></div>
            <div class="pull-left"><a href="#">第三季度</a></div>
            <div class="pull-left"><a href="#">第四季度</a></div>
         </div>
         <div class="ptr_eachquarter clearfix" style="display:none;">
            <div class="pull-left"><a href="#">第一季度</a></div>
            <div class="pull-left"><a href="#">第二季度</a></div>
            <div class="pull-left"><a href="#">第三季度</a></div>
            <div class="pull-left"><a href="#">第四季度</a></div>
         </div>
      </div>
   </div>

   <!-- ppp_timepicker月份 -->
   <div class="ppp_timepicker ppp_timepicker_month clearfix">
      <ul class="pull-left">
         <li class="sldcur_li">2011</li>
         <li>2012</li>
         <li>2013</li>
         <li>2014</li>
      </ul>
      <div class="ppp_timepicker_right pull-left">
         <div class="ptr_eachmonth clearfix">
            <div class="pull-left"><a href="#">1</a></div>
            <div class="pull-left"><a href="#" class="sldcur_a">2</a></div>
            <div class="pull-left"><a href="#">3</a></div>
            <div class="pull-left"><a href="#">4</a></div>
            <div class="pull-left"><a href="#">5</a></div>
            <div class="pull-left"><a href="#">6</a></div>
            <div class="pull-left"><a href="#">7</a></div>
            <div class="pull-left"><a href="#">8</a></div>
            <div class="pull-left"><a href="#" class="notsldcur_a">9</a></div>
            <div class="pull-left"><a href="#" class="notsldcur_a">10</a></div>
            <div class="pull-left"><a href="#" class="notsldcur_a">11</a></div>
            <div class="pull-left"><a href="#" class="notsldcur_a">12</a></div>
         </div>
         <div class="ptr_eachmonth clearfix" style="display:none;">
            <div class="pull-left"><a href="#">1</a></div>
            <div class="pull-left"><a href="#">2</a></div>
            <div class="pull-left"><a href="#">3</a></div>
            <div class="pull-left"><a href="#">4</a></div>
            <div class="pull-left"><a href="#">5</a></div>
            <div class="pull-left"><a href="#">6</a></div>
            <div class="pull-left"><a href="#">7</a></div>
            <div class="pull-left"><a href="#">8</a></div>
            <div class="pull-left"><a href="#" class="notsldcur_a">9</a></div>
            <div class="pull-left"><a href="#" class="notsldcur_a">10</a></div>
            <div class="pull-left"><a href="#" class="notsldcur_a">11</a></div>
            <div class="pull-left"><a href="#" class="notsldcur_a">12</a></div>
         </div>
         <div class="ptr_eachmonth clearfix" style="display:none;">
            <div class="pull-left"><a href="#">1</a></div>
            <div class="pull-left"><a href="#">2</a></div>
            <div class="pull-left"><a href="#">3</a></div>
            <div class="pull-left"><a href="#">4</a></div>
            <div class="pull-left"><a href="#">5</a></div>
            <div class="pull-left"><a href="#">6</a></div>
            <div class="pull-left"><a href="#">7</a></div>
            <div class="pull-left"><a href="#">8</a></div>
            <div class="pull-left"><a href="#" class="notsldcur_a">9</a></div>
            <div class="pull-left"><a href="#" class="notsldcur_a">10</a></div>
            <div class="pull-left"><a href="#" class="notsldcur_a">11</a></div>
            <div class="pull-left"><a href="#" class="notsldcur_a">12</a></div>
         </div>
         <div class="ptr_eachmonth clearfix" style="display:none;">
            <div class="pull-left"><a href="#">1</a></div>
            <div class="pull-left"><a href="#">2</a></div>
            <div class="pull-left"><a href="#">3</a></div>
            <div class="pull-left"><a href="#">4</a></div>
            <div class="pull-left"><a href="#">5</a></div>
            <div class="pull-left"><a href="#">6</a></div>
            <div class="pull-left"><a href="#">7</a></div>
            <div class="pull-left"><a href="#">8</a></div>
            <div class="pull-left"><a href="#" class="notsldcur_a">9</a></div>
            <div class="pull-left"><a href="#" class="notsldcur_a">10</a></div>
            <div class="pull-left"><a href="#" class="notsldcur_a">11</a></div>
            <div class="pull-left"><a href="#" class="notsldcur_a">12</a></div>
         </div>
      </div>
   </div>
</div>
<? endif; ?>
